package cn.iocoder.yudao.module.shop.category.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "用户 APP - 行业类目 Response VO")
public class AppShopCategoryRespVO {

    @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Long id;

    @Schema(description = "分类标识", example = "mall")
    private String code;

    @Schema(description = "父分类编号", example = "1")
    @NotNull(message = "父分类编号不能为空")
    private Long parentId;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "普通产品")
    @NotBlank(message = "分类名称不能为空")
    private String name;

    @Schema(description = "分类图标")
    @NotBlank(message = "分类图标不能为空")
    private String iconUrl;

    @Schema(description = "跳转链接")
    private String linkUrl;

    @Schema(description = "保证金", example = "0")
    private Long depositPrice;

    @Schema(description = "是否推荐", example = "false")
    private Boolean recommend;

    @Schema(description = "供应方名称", example = "平台")
    private String supplyName;

    @Schema(description = "供应方关联编号", example = "0")
    private Long supplyRelatedId;

}
